﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace AISmartEventServer
{
    [Serializable()]
    [DataContract(Name = "AlarmMessageModel")]
    public  partial class AlarmMessageModel
    {
        /// <summary>
        /// ID
        /// </summary>
        [DataMember(Name = "ID")]
        public string ID { get; set; }

        /// <summary>
        /// SOURCEID
        /// </summary>
        [DataMember(Name = "SOURCEID")]
        public string SOURCEID { get; set; }

        /// <summary>
        /// 报警事件名称
        /// </summary>
        [DataMember(Name = "AlarmName")]
        public string AlarmName { get; set; }

        /// <summary>
        /// 报警发生产视频源名称(一般为摄像机名称)
        /// </summary>
        [DataMember(Name = "SourceName")]
        public string SourceName { get; set; }

        /// <summary>
        /// 报警时间
        /// </summary>
        [DataMember(Name = "AlarmTime")]
        public DateTime AlarmTime { get; set; }

        /// <summary>
        /// 停止报警时间
        /// </summary>
        [DataMember(Name = "StopAlarmTime")]
        public DateTime StopAlarmTime { get; set; }

        /// <summary>
        /// 源Id
        /// </summary>
        [DataMember(Name = "IvsHostFeedId")]
        public int IvsHostFeedId { get; set; }

        /// <summary>
        /// 规则区域序号
        /// </summary>
        [DataMember(Name = "RuleIndex")]
        public int RuleIndex { get; set; }

        /// <summary>
        /// 布控区域序号ID
        /// </summary>
        [DataMember(Name = "AreaIndex")]
        public int AreaIndex { get; set; }

        /// <summary>
        /// Ivs事件类型
        /// </summary>
        [DataMember(Name = "IvsEventType")]
        public string IvsEventType { get; set; }

        /// <summary>
        /// 图片1-报警对象图片
        /// </summary>
        [DataMember(Name = "TakePic")]
        public string TakePic { get; set; }

        /// <summary>
        /// 图片2-报警开始全景图片
        /// </summary>
        [DataMember(Name = "BeginTakePic")]
        public string BeginTakePic { get; set; }

        /// <summary>
        /// 图片3-报警停止全景图片
        /// </summary>
        [DataMember(Name = "EndTakePic")]
        public string EndTakePic { get; set; }

        /// <summary>
        /// 规则类型
        /// </summary>
        [DataMember(Name = "RuleType")]
        public string RuleType { get; set; }

        /// <summary>
        /// 报警级别
        /// </summary>
        [DataMember(Name = "AlarmLevel")]
        public int AlarmLevel { get; set; }

        /// <summary>
        /// 报警图像
        /// </summary>
        [DataMember(Name = "AlarmImage")]
        public string AlarmImage { get; set; }

        /// <summary>
        /// 计数
        /// </summary>
        [DataMember(Name = "AlarmCount")]
        public int AlarmCount { get; set; }
   
        /// <summary>
        /// 消息报警类型
        /// </summary>
        [DataMember(Name = "AlarmType")]
        public int AlarmType { get; set; }


        /// <summary>
        /// 服务器ID
        /// </summary>
        [DataMember(Name = "ServerID")]
        public string  ServerID { get; set; }
      
    }

    public partial class AlarmMessageModel
    {

        /// <summary>
        /// 系统ID
        /// </summary>
        [DataMember(Name = "sysid")]
        public string sysid { get; set; }


        /// <summary>
        /// 报警处理
        /// </summary>
        [DataMember(Name = "EventBind")]
        public string EventBind { get; set; }

        /// <summary>
        /// 事件状态
        /// </summary>
        [DataMember(Name = "Status")]
        public int Status { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        [DataMember(Name = "UpdateTime")]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 选择
        /// </summary>
        [DataMember(Name = "YN")]
        public Int16 YN { get; set; }

        /// <summary>
        /// 是否误报
        /// </summary>
        [DataMember(Name = "Whether")]
        public int Whether { get; set; }


        //实体增删改 标记
        /// <summary>
        /// 实体增删改 标记
        /// </summary>
        [BaseCommon.StatusProperty()]
        [DataMember]
        public BaseCommon.EntityStatus EStatus { get; set; }

    }
}
